const koa = require("koa")
const app = new koa()
const router = require("koa-router")()
const bodyParser = require("koa-bodyparser")
router.post("/post",async ctx=>{
    console.log(ctx.request.body);
    ctx.body="登录成功"
})
app.use(bodyParser())
app.use(router.routes())
app.listen(8000)